package com.woniu.airent.service;

import com.github.pagehelper.PageInfo;
import com.woniu.airent.dto.UserDto;

import java.util.List;

public interface UserDtoService {

    UserDto findUserByUserName(String userName);

    Integer addUser(UserDto userDto);

    UserDto findUserByTel(String userTel);

    Integer addUserDto(String userName, String userPwd, String userTel);

    List<UserDto> findUserRolesByUserName(String userName);

    PageInfo findAllUser(String userName, Integer now, Integer pageSize);

    Integer showMyType(Integer userId);

    Integer banUser(Integer userId);

    Integer unsealUser(Integer userId);

    public UserDto showUserInfo(Integer userId);

    public Integer userUpdate(UserDto userDto);

    UserDto findUserByUserId(int userId);
}
